package com.laborder.sysyy.dao;

import com.laborder.sysyy.entity.BussinessMsg;
import com.laborder.sysyy.entity.LabOrder;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
/**
 * @Function: 课程预约DAO层
 * @author: 786107529@qq.com FJL
 * @date:2018/9/8 17:37
 */
@Repository
@Mapper
public interface LabOrderDaoMapper {
		/**
		 * @Function: 分页查询
		 * @author: 786107529@qq.com FJL
		 * @date:2018/9/8 17:37
		 */
	  List<LabOrder> findLabOrderWithPage(Map<String, Object> map);
	  /**
	   * @Function: 查询总数
	   * @author: 786107529@qq.com FJL
	   * @date:2018/9/8 17:37
	   */
	  int getLabOrderCount(Map<String, Object> map);
	  /**
	   * @Function: 添加预约信息
	   * @author: 786107529@qq.com FJL
	   * @date:2018/9/8 17:38
	   */
	  int saveLabOrderInfo(LabOrder laborder);
	  /**
	   * @Function: 删除预约信息
	   * @author: 786107529@qq.com FJL
	   * @date:2018/9/8 17:38
	   */
	  int delLabOrderInfo(String loId);
	  /**
	   * @Function: 更新审核状态
	   * @author: 786107529@qq.com FJL
	   * @date:2018/9/8 17:38
	   */
	  int updateLabOrderInfo(LabOrder laborder);
	  /**
	   * @Function: 根据ID查询状态
	   * @author: 786107529@qq.com FJL
	   * @date:2018/9/8 17:38
	   */
	  LabOrder  findSateInfoById(String loId);
	LabOrder  getLabOrderInfoById(String loId);
	int changeLockState(Map<String,Object>map);

}
